﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Finance.IBll;
using Finance.IDal;
using Finance.Dal;

namespace Finance.Bll
{
    public class BillTypeBll : IBillTypeBll
    {
        IBillTypeDal billTypeDal = new BillTypeDal();
        public IEnumerable<Entity.AccountsTypeEntity> List(string name, int? isOut, int pageIndex, int pageSize, out int total)
        {
            return billTypeDal.List(name, isOut, pageIndex, pageSize, out total);
        }

        public bool Delete(int id)
        {
            return billTypeDal.Delete(id);
        }

        public bool Save(int id, string name, int isOut)
        {
            return billTypeDal.Save(id, name, isOut);
        }


        public IEnumerable<Entity.AccountsTypeEntity> List()
        {
            return billTypeDal.List();
        }
    }
}
